package com.ilink.teacherservice.service.Screen;

import com.ilink.teacherservice.mapper.Screen.MajorChartMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import java.util.Objects;

@Service
public class MajorChartService {
    @Autowired
    private MajorChartMapper majorChartMapper;

    /**
     * 根据课程名称获取专业图表数据。
     *

     * @return 包含专业分类和数量的映射列表

     */
    public List<Map<String, Object>> getMajorChartNum() {
        // 创建新变量存储去除空格后的课程名
        List<Map<String, Object>> data = majorChartMapper.getMajorChart();

            return data;

    }
}